Skip to content

feat: add inline tool definition and chain in chain 🤯 #75

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

chr-hertel
Copy link
Member

No description provided.

- service: 'llm_chain.chain.research'
name: 'wikipedia_research'
description: 'Can research on Wikipedia'
is_chain: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While thinking about this, do we really need this? We know service is a ChainInterface 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another thing of writing could be:

- service: 'llm_chain.chain.research'
+ chain: 'llm_chain.chain.research'
name: 'wikipedia_research'
description: 'Can research on Wikipedia'
- is_chain: true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but I think I would just remove the is_chain

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tried to omit that thing, but failed 😢

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but why, don't we know at that time, that the service is an instance of ChainInterface?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm with you on this, but i just don't know how 😆

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright then, but I can also set is_chain true and add anything else in service then, but we can communicate that with a clear error I guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait a sec

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting again ... ⏳ 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite in your face, yes

image

Base automatically changed from feat-0.19 to main March 20, 2025 22:48
@chr-hertel chr-hertel merged commit 3aa39fd into main Mar 20, 2025
7 checks passed
@chr-hertel chr-hertel deleted the feat-service-tools branch March 20, 2025 22:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants